<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>BeniBaby</title>
  <meta name="description" content="">
  <meta name="keywords" content="index">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta name="apple-mobile-web-app-title" content="LeanCloud CMS" />
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="/i/app-icon72x72@2x.png">
  <link rel="stylesheet" href="/css/amazeui.min.css"/>
  <link rel="stylesheet" href="/css/main.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，本系统暂不支持。 建议使用 <a href="http://www.google.cn/intl/zh-CN/chrome/" target="_blank">谷歌浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar">
  <div id="topmenu">
    <% if(user){ %>
    <span><a href="/user/collections"><i class="am-icon-heart"></i> 心愿单</a></span>
    <span><a href="/user/cart"><i class="am-icon-shopping-bag"></i> 购物袋(<font id="cartcount">0</font>)</a></span>
    <span class="am-fl">你好，<a href="/user/info" title="点击进入账户管理"><%= user.get('username') %></a>! - <a href="/logout" title="点击退出登录">退出</a></span>
    <% }else{ %>
    <span>你好，请先 <a href="/login">登录</a> - <a href="/register">注册</a></span>
    <% } %>
    <div class="am-cf"></div>
    <div class="am-cf am-fr">
      <form id="searchBar" name="search" action="/item"  method="get">
      <input max-length="40" class="am-padding-xs" type="text" name="keyword" value="" placeholder="" />
      <div class="am-btn-sm am-icon-search" onclick="$('#searchBar').submit()"></div>
      </form>
    </div>
  </div>
  <div class="am-cf am-vertical-align">
    <h1 id="logo">
      <a href="/"><img src="/i/logo.png" alt=""/></a>
    </h1>
  </div>
	<div class="am-cf">
    <div id="collapse-head">
  		<div><a href="/">首页</a></div>
      <div><a href="/item">新品</a></div>
      <div><a href="/item?sex=婴儿">婴儿</a></div>
      <div><a href="/item?sex=女孩">女孩</a></div>
      <div><a href="/item?sex=男孩">男孩</a></div>
      <div><a href="/brand">所有品牌</a></div>
    </div>
	</div>
</header>
